package ibmetp.mis.serviceImpl;

import java.util.List;

import ibmetp.mis.dao.ResourceDao;
import ibmetp.mis.service.PageService;
import ibmetp.mis.service.ResourceService;
import ibmetp.mis.vo.Page;
import ibmetp.mis.vo.Resource;

public class ResourceServiceImpl implements ResourceService, PageService{
	private ResourceDao rr= new ResourceDao();
	public String addResource(List<Resource> resources) {
		rr.addResource(resources);
		return null;
	}

	public String addresource(Resource resource) {
		rr.addResource(resource);// TODO Auto-generated method stub
		return null;
	}

	public Resource deleteById(Long id) {
		rr.deleteById(id);// TODO Auto-generated method stub
		return null;
	}

	public String deleteByIds(String resourceIds) {
		rr.deleteByIds(resourceIds);// TODO Auto-generated method stub
		return null;
	}

	public Resource getResourceById(Long id) {
		rr.getResourceById(id);// TODO Auto-generated method stub;
		return null;
	}

	public String updateResource(Resource resource) {
		rr.UpdateResource(resource);// TODO Auto-generated method stub
		return null;
	}

	public Page getPage(int pageNo, int pageSize, Object resource) {
		
		return rr.getResourcePage(pageNo, pageSize, resource);// TODO Auto-generated method stub;
	}
	public Page getRoleResPage(Long roleId,int pageNo, int pageSize, Object resource) {
		
		return rr.getRoleResPage(roleId,pageNo, pageSize, resource);// TODO Auto-generated method stub;
	}
	public Page getRoleUnResPage(Long roleId,int pageNo, int pageSize, Object resource) {
		
		return rr.getRoleUnResPage(roleId,pageNo, pageSize, resource);// TODO Auto-generated method stub;
	}
	

}
